-- GENERATED SPELL FOR [Alliance Siege Vehicle] --


function spell0_32389(pUnit, Event) --@Siege Shell,n/a--
pUnit:FullCastSpellOnTarget(59392,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32389', 3000, 1)
end

function Sorts_32389(pUnit, Event)
local choix_sorts_32389 = math.random(0, 0)
if choix_sorts_32389 == 0 then
pUnit:RegisterEvent('spell0_32389', 1, 1)
end
end

function mob32389_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32389', math.random(1500, 3000), 1)
end

function mob32389_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32389_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32389_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32389, 1, 'mob32389_Action')
RegisterUnitEvent(32389, 2, 'mob32389_Leave')
RegisterUnitEvent(32389, 3, 'mob32389_Kill')
RegisterUnitEvent(32389, 4, 'mob32389_Die')
